import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
// import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'https://wtplug.oss-cn-hangzhou.aliyuncs.com/webimages/logo192.png',
      keepAlive: true,
      order: 1001,
      title: '抖羚羊运营助理',
      // badge: 'HOT',
      // badgeType: 'normal',
    },
    name: 'DlyOperation',
    path: '/DlyOperation',
    // 默认展开

    // redirect: '/dly-operation',
    children: [
      {
        redirect: '',
        name: '/',
        path: '/',
        meta: {
          icon: 'mdi:ansible',
          keepAlive: false,
          order: 2000,
          title: 'AI违规检测',
          link: 'https://fxg.jinritemai.com/ffa/g/list?typefordly=AiWeiguiJianCe',
        },
      },
      {
        redirect: '',
        name: '/',
        path: '/',
        meta: {
          icon: 'material-symbols-light:copy-all',
          keepAlive: false,
          order: 2000,
          title: '商品AI裂变',
          link: 'https://fxg.jinritemai.com/ffa/g/list',
        },
      },
      {
        redirect: '',
        name: '/',
        path: '/',
        meta: {
          icon: 'ic:twotone-cloud-sync',
          keepAlive: false,
          order: 2000,
          title: '限时限量购',
          link: 'https://fxg.jinritemai.com/ffa/g/list?typefordly=LtaLp',
        },
      },
      {
        redirect: '',
        name: '/',
        path: '/',
        meta: {
          icon: 'ic:twotone-confirmation-number',
          keepAlive: false,
          order: 2000,
          title: '设置优惠券',
          link: 'https://fxg.jinritemai.com/ffa/g/list?typefordly2=addCoupon',
        },
      },
      {
        redirect: '',
        name: '/',
        path: '/',
        meta: {
          icon: 'ic:outline-confirmation-number',
          keepAlive: false,
          order: 2000,
          title: '优惠券管理',
          link: 'https://fxg.jinritemai.com/ffa/g/list?typefordly2=setCoupon',
        },
      },
      {
        redirect: '',
        name: '/',
        path: '/',
        meta: {
          icon: 'ic:baseline-confirmation-number',
          keepAlive: false,
          order: 2000,
          title: '全自动阶梯券',
          link: 'https://fxg.jinritemai.com/ffa/g/list?typefordly2=AutoSetCoupon',
        },
      },
      {
        redirect: '',
        name: '/',
        path: '/',
        meta: {
          icon: 'ic:outline-cleaning-services',
          keepAlive: false,
          order: 2000,
          title: '清理无流量',
          link: 'https://fxg.jinritemai.com/ffa/g/list?typefordly=clearNoFlow',
        },
      },
      {
        redirect: '',
        name: '/',
        path: '/',
        meta: {
          icon: 'solar:user-check-rounded-line-duotone',
          keepAlive: false,
          order: 2000,
          title: '邀约达人',
          link: 'http://yywk.doulingyang.cn/acl/invitation',
        },
      },
      {
        redirect: '',
        name: '/',
        path: '/',
        meta: {
          icon: 'ic:outline-http',
          keepAlive: false,
          order: 2000,
          title: 'IP隔离',
          link: 'https://doulingyang.cn/?Isolation=1',
        },
      },
      {
        redirect: '',
        name: '/',
        path: '/',
        meta: {
          icon: 'ic:round-divide',
          keepAlive: false,
          order: 2000,
          title: 'ROI计算器',
          link: 'https://fxg.jinritemai.com/ffa/g/list?typefordly3=ROIcompute',
        },
      },
      {
        redirect: '',
        name: '/',
        path: '/',
        meta: {
          icon: 'icon-park-outline:api-app',
          keepAlive: false,
          order: 2000,
          title: '商品优化',
          link: 'https://fxg.jinritemai.com/ffa/g/list?typefordly=prodectOptimization',
        },
      },
      {
        redirect: '',
        name: '/',
        path: '/',
        meta: {
          icon: 'ic:baseline-delete-forever',
          keepAlive: false,
          order: 2000,
          title: '清空回收站',
          link: 'https://fxg.jinritemai.com/ffa/g/list?typefordly=clearRb',
        },
      },
    ],
  },
];

export default routes;
